Replaced deprecated schedule and date methods + added comments