A module/command to sample data from data stream