Restore old main.cpp