Add userinput into the second iteration of search