Updated TreEngineFormat to support empty layers