Fix overflow issues.
Change the sampling interval back to 5000 ms.