Add standart detection
 * Add standart detection
 * Minor change in main.cpp