Replaced loop with let in process-fn-arity.