Not that hard with some dedicated thread-tracking.