Add clean() to mod_move function