Adds some hooks