Move functions logic