Fix up config function.