Updated script to output diametral pitch.