Making variable delay for insert