Improved reading of config