Genericise tiling to add support for text format.