Added more code to the sound loop