working BPM capture and calculation