Main server file