Retriving and creating tasks