Add handler for server output