Added AttributeUsage_Unused Improved code and error handling Former-commit-id: bd0f3755867d38e0f03b282970031fbadc10213e