Added user input loop