Added logger thread