Added centering to smoothening. This should take care of the delay.