Changed $this to $parentObj to avoid fatal errors ;-)