Added the check if the hook already in the hook list before adding it to the list.