Changed the sound logic.