Added function to retrieve a users thread