Adding parent pointer to interfaces. Adding reference counting.