Adding jitter function