Added variable wave velocity