Added config object instead of just fields.