Added step behaviour to output.
Now stalls until "step\n" is entered as a command when attempting to output json.