Made dummy server work right

Make sure to use this code in the main server program.