Made getGuests more flexible