Added the IO Loop