Change sampling time 20 to 40