Added code for testing IO.