Change function name to jitter_index