First version of an async listener thread