Adding a move function