Update hook.rb