Seperated output function.