Added function to get all data