Updated the task/generator loading mechanism.