Adds two hooks