Made parent into a variable to ease usage.