Updated to read config