Changed the query to get latest result from resource.