Modify customhook extension to allow multiple hook points