Add f and reg parameters.