Added some IO utilities.