Refactor to display function separate from get results.