Added parameters check in main.cpp