Implement wave pattern.