Added debugging code for strange timeouts