Moved subsample() up.