Moved no results into function