Add some code for tiles.