Smooth out the transitions