Added the missing before and after hook.
Merge pull request #462 from kazimanzurrashid/master

Updated