Added in BPM calculating class.