Added user input function to search