Removed a bunch of i/o and mutable states