Use thread to print results every second