Simplify sleeping and move to process_entry method