Update sparky code