Added logic for loading sounds.