Add a message field to setRule method. Issue #8.