Extracted parentVariance wrapper code to top