Added input flag for process.cpp and sample.cpp