Melatonin

My doc suggested I take melatonin for helping me sleep. I had bad insomnia before I got pregnant and now even with all that I do all day I am still having issues with sleep. I am just wondering if any of you good experience with Melatonin while pregnancy. The bottle does say consult with doc first. Just a nervous new momma.