Changed userInput to a list.