Preventing stretch marks.

I know they can be somewhat hereditary but what did you use to prevent stretch marks? What product is the best and how far along should you start using it?