Add ref to gmm code