Use a global config object instead of passing params everywhere