Cleanup code
adds Sparky.ready