Partially deprecated varm function