What is this loop for? The variable sms_nums only keeps the last iteration value.