A simple way of keeping track of asynchronous events