** Moved IO operations into IOHandler class