added waving option.