Added timeout support + export stats into csv files