Refactored the jitter as a class parameter.