Removed import of pthread and changed some logging