Added squash function (gsq).