Improved scripts that find the next available file
Removed wait_for_file poll
Sleep for a random amount before processing