Added user prompts and conditionals to check user inputs.