Changed getConfig to allow a parameter array in addition to an ID for flexibility.