Added partial server/client functionality.