Move main to root