Added code to check jitter (NOT TESTED)