Removed unnecessary variables from wave loading.