Simplify hook script.
Simplify hook script.
Simplify hook script.