I just realized I should have the initialization call define_wave()