Wave mechanism added.