SMS: Morse theory