Sligth modification of the SMS engine