Kinda got downsampling working