Make it compatible with the new (9.3) API
Replace work_spi with stats_recorder_spi