Refactored return of get_results