Use flags library