Simplified server code.