Refactor utils
Add task scheduler (via agenda)