Registers a task to be ticked.
We want it to run before everything else, this is because we want to tick the existing tasks before new ones are added and might be ticked in the same tick