Wrote the schedule handler nightmare code. Tested with dummy access tokens, but untested on the server.