Optimised config id allocation, config files will need to be re-made