Why are you setting a target parameter in stopcasting and stopmacro?

Also from memory your focus macro doesnt need Target at the end...