Disable more function in main.cpp