Added FREQS_PER_BPM constant to replace magic numbers and make the number of lines per BPM adjustable.