Added framework for IO stuff. Need to implement DB stuff first though.