Return 0 instead of f to indicate final form.  It's just simpler.