Added transition to smooth the movement.