Worked on task scheduler