Added getAll function