Added some preinit lines before adding items & config