Configure script hook