Added a bit of exeption handling for the step inputs.