Adding timeout manager to print the information about the timeouts in the end and also fixing small bug in refac to avoid the traversal strategy to pass through the same tree twice