Added method to get object.