Added type defenition for tasks and projects.