Improved file based queue.