Added code to run all the steps through c++ code using system calls.