Anand - added different types of hooks.