Added threading functionality to log tailing