Added generate tile functions