Update on sampling algorithm 1.