added setting of sample_interval parameter