Command line and Scheduling functions added