Moved TE registration to preInit