Added a check for overrides in addInstance