Allow user to choose an error to go to. Clean up code.