Moved beep to proper conditional branch