The `error` variable was never used. Also added a more convenient typedef for both the downstream and upstream functions and updated filter API version.