Revert changes to main.cpp (hacks)