Downsampler fix sample size fix.
Log restricted.
Merge pull request #1 from rzsombor/master

Pull from rzsombor