Add function to process hooks on-demand