Converted into non-OOP because of callbacks.
Add task repo.