Add delay in logger