Now using sinusoidal profiles. Small improvement.