Refactoring and added a comment to explain the choice of the specific nap time.