Simplify some needlessly complex code.
Regex filtering for reporting commands.