Adding very rough SML version.