Metformin side effects

How do you guys deal with the severe diarrhea side effect of metformin? I mean most days it's not so bad but then other days I'm on the toilet the whole day with cramps and all. It really makes life difficult. ...and messy. Thanks for any advice.