Added tag and detag flags