Sorry TMI question!!

MW

I was put in sertraline 2 1/2 weeks ago for anxiety and depression. I have felt fine on it other than horrible diarrhea and stomach noises. I take it right before bed and when I wake up each morning I have to immediately go to the bathroom and sometimes am in and out of there several times for a few hours. Is this something that will eventually go away or is there anything I can take to help?