SMS: Decision making and programming