Lauch mode added to main.cpp