Tidied up code for sound elements