Added subsampling module but not working yet