Adding sampling option