Moving tasks to lib/tasks.