Added getattr to parent retrieval