How can CBD oil help alleviate pain?

How can CBD oil help alleviate pain?