Refactored out IOUtils