Added more three more steps to the published template and improved the logging.