Added functionality for user to select speed