Complete flag and unflag feature.