Added a code for scheduling the process