introduced maximum speed
improved input handling