Added code for loading TileClasses.