Added better checking for SubTileFunctional and SubTileGenerating.