The message filtering now works, thanks to Jim on some of this bitshifting