Create a flow listener thread