And it's actually simpler in practice than you think.