Added setscheduler command and functionality.