Added wav functions.