Tweaked user input logic to be more paranoid with user input.