Added the sampling time to Sample.