Prefer to use err instead of ret for variable names