SPNL integration

Working but added many TODOs...