Refactored speedFactor into Generator