Simplified result_found() function