Smooth transition between states added.