SMS dit: The EM algorithm and extensions