Added optional confirmation and config file