Implemented sequential smoothening.