This should work. Of course it doesn't
Except that the smoothing is nearly non-existant...