Schedule auto-generation code has been refactored and User.can_work has been implemented.