Code to examine torque produced