Adding a 'speed' parameter to control how quickly generations are computed.