Add option to filter messages with a callable