Implemented idle task and new task