Updating wave_Detection