Added better debugging for timeouts.