Started porting SMMALA (incomplete - WIP)