Use a different thread to dispatch events