Refactoring of the task generator in order to use it from the performance analyzer. New class: Generator.