Add channel sampling support
Merge pull request #57 from elubow/sampling

Add channel sampling support