Using the getAll function