Code to be used in http://www.wavepot.com