Added subsampling.