Changed checkSMS to void