Hardness control at the factory lab