Do away with global state; pass around an atom instead