Output functions added