Just needs better commenting and the new customer detection system