Corrected the passing of af in ForLoop. Things were sometimes allocated twice.