Added support for dirty sinusoid.