Added methods to NSManagedObject base class