Improve compileEntities example