These should be in the if (client) block.