Added Server interface, output handling code