Logging thread behaviour - logging will be removed later