[BUGGY] Moved stuff into tasks. Compiles now.

Not guaranteed to work at all.