Added ability to generate tiles