added option to not print all the intermediate steps.