Writing artifacts in the userassist_writer() function