Awesome, but you have to move this up above the pref_all_sms check, otherwise it's never going to get called.