Caffeine affects naturally occurring melatonin. You may want to stick to drinking non-caffeinated beverages when you're taking melatonin to help with sleep.