Added functions to IO through arrays