Trying to make threads put work