More flexibility to getAll()