Added looping and volume memorization.