Changed SAMI converting logic; Implemented exceptions