increased delay to 200ms and implemented as variable