Added some output functions.