Added hooks addLaw and removeLaw. #1308