Working! Fixed subsampling and scale bugs.