Cyclone / Maelstrom code. Hopefully it works