Some improvements to the auto increment system.