Add support for IfUnused flag