Smooth flow

Smooth flow by bart1338419.