Add in subsampling code...