Early labor

Last night at about 10 I went to L & D because I was doubled over in pain from contractions. It felt constant to me for about 45 minutes so it was difficult for me to tell how far apart they were, but I had never experienced pain like that before so I went in. When I was first hooked up to the monitor my contractions were 2 minutes apart but as they continued to monitor me for over an hour, they spaced out to 5 minutes apart and became less painful and I didn't dialate at all during that time. They said I was in the early stages of labor and sent me home..since then I have had contractions 5 minutes apart staying at the same pain level..haven't slept and have been up pacing around the house and still not progressing. What are the most effective things to do to speed up early labor once you're in it? I'm almost 39 weeks btw