Added some output routines.