Still correcting the bug with the sampling time, phew