Slow task execution

Spread out long-running tasks over multiple ticks.

~~It now works!~~ It's been refactored again.

https://www.youtube.com/watch?v=NAcOofJ8IMQ