Reworked threads for metronome.