Fix sb_pings callback to use returnable function.
closes #48