Added hook chaining for better hook management