Re-add spa fns

Add spp fns for compiling on cluster