Made the run_timeouts bit more efficient and added debug message to it recursing.