Moved the TaskParameters creation to a Builder pattern