Added beta substitution.