Help?

Constipation while 32 weeks pregnant and it's giving me cramps and back pain. What helps that is safe?