Move main func