Based on this code, planning on making tweaks for better tilification