Script throws error if not used directly from oMiniGame. Include "with statement" in code to resolve.