Add check for isServerMode()