Working on Petrick's method.