Fixed passFns undefined error.