First steps of a better Task class
Tasks are no longer generated in every frame