Added global hooks
Merge pull request #3 from vsviridov/master

Added global hooks