Add err as first parameter.