Worked on tasks controller, added some logging to check variables.