Added ability to do dry run