Added more functions to the IO method