Add an initialize method for undefined classes to flag when they are first used.