Add substitution method and definition dict