All code for firefly