Optimized Server and Client