Adding task scheduler