Cleaning up simple_queue and outputing to log file.