Frost macro help

This is my frost macro, this is the only way I can get Glacial Spike and Ebonbolt to be cast almost right after Frostbolt as soon ad they are ready, but I’m still having issues with Frostbolt casting multiple times before casting Ebonbolt and Glacial spike, this happens especially when using Ice Lance right after Frostbolt. Any suggestions on how to make it always use Ebonbolt and Glacial Spike after Frostbolt no matter what would be appreciated!

Combat=true,
Trinket1=true,
Trinket2=true,
Head=true,
Neck=true,
Belt=true,
Ring1=true,
Ring2=true,
StepFunction = “Priority”,
KeyPress={
“/targetenemy [noharm][dead]”,
“/cast Icy Veins”,
},
PreMacro={
},
“/cast Glacial Spike”,
“/cast Ebonbolt”,
“/cast Frostbolt”,
“/cast Glacial Spike”,
“/cast Ebonbolt”,
PostMacro={
},
KeyRelease={
},
},