Added replacer for rules object