Adding thread id