Some improvements to Config class