Optimized code in Home, so that the server is loaded only if necessary