This is disgusting, but there wasn't a hook for me to implement a filter in this way.