Move logic into controllers. Allow task deletion.