Added a function to do get all results