Yeah, I just wanted to do it both places, incase anybody wants to use SMS class elsewhere. I suppose I can remove the logic from the controller though. Done.