Added code to read tiled files