Added detail for debug log
Fixed problem restoring rules from stack