Added support for null rules, works well.