Improved the '($parent) =' pattern match (Daniel Tiefnig)