Mind blast / mind flay macro

I want to create a macro using these two spells only , whats the best way to do so? so i would be able to cast mb when its out of cd or spam flay.

Sequences['MB+MF'] = {
-- This Sequence was exported from GSE 2.1.00.
  Author="Tamifae@Silvermoon",
  SpecID=258,
  Talents = "3131312",
  Help = [[Konstantinos Palaiologos]],
  Default=1,
  MacroVersions = {
    [1] = {
      StepFunction = "Priority",
      KeyPress={
      },
      PreMacro={
      },
        "/cast Mind Blast",
        "/cast [nochanneling] Mind Flay",
      PostMacro={
      },
      KeyRelease={
      },
    },
  },
}

There you go.

NICE! it works , i didnt know no channeling can freeze the sequence to mind blast.