Modified calcPitch a little.