increased the delay
better comparison of modification time
fixed time checks