Support state param for callback
Merge pull request #88 from smingins/master

Support state param for callback