Removed parent ref.
Removed the debug stuff .