Add hook for substitution