Support for checking user mode
Reference part of a regex match in the rule
Added some more rules