Prepare for weighted distributions.