Safe flag and table output