Added function for server output formating.