Included possibility to downsample stepwise.