Added handler thread class