DRY'ed up the isClient and iServer blocks.