Adding ifdef on/off for SMS support