More readability

And add an interface to specify the notify hash.