Corrected gm script