New gram basis calc.