Cleaned up server script.