SMS: Using advanced algebra