Added classes for bpm detection