Subsampling detection added.