Added threaded tasks and made the tasks implement interfaces for the ticks they need.