Cleaned up input loop so we wouldn't try and exec an "exit" command