Added updating the position