Generic Data Sampling Engine