Made nap time a parameter to run_until_satisfied(_2). Also refactoring.