Preliminary version of server program