Added function to get results