Added lookup algorithm and sma files.