Created a move-function