Implemented wave system.