Got the getAll function to work