Moved sound function.