Now using module global config object, simplifies function calls.