Add format option to out_exec