Added the user input and parsing mechanism.