Updated code with jittering and mean functions to improve performance
Updated code with jittering and mean functions to improve performance