Starting to sample, but way slow. Need to optimize probably memcopies