More work on spsa