Add hook definition