Add wav import and reuse commonly used code.