Improved way tiling script.