Fixed bug where it repeatedly processed even though sample rate was correct