Add new flag for primary server
Add MODE enum and initializer for serveMode