Handling IDT timeout with 5 retry attempts. If all fail, a melting temp
of -1 is returned. Also, added test.