Refactored code to separate the buzz and beep validation from the rest of the pipeline.