Add support for scheduling maintenance and checking for maintenance.