Movement function is done.