Changed the names of variables in search and display.