Move main to the right location.