Added getObjects method