Pass all parameters to add hook API.
Removing unnecessary code and adding retro-compatibility.
Pass all parameters to add hook API.
Removing unnecessary code and adding retro-compatibility.
Merge remote-tracking branch 'remotes/origin/pr/49' into develop

* remotes/origin/pr/49:
  Removing unnecessary code and adding retro-compatibility.
  Pass all parameters to add hook API.
esthetics