Script engine modification to support opncalc sample