Cleans up parts of get_input.