Make the timeout for duplicate events a variable.

Also change the timeout to 100ms