TOTAL_LAYERS should be 23. I can't maths apparently. I'll fix it tomorrow.