Magnesium can also be combined with other supplements, such as melatonin and vitamin B complex, to reduce insomnia symptoms .