Caffeine, a naturally occurring xanthine derivative like theobromine and the bronchodilator theophylline, is used as a CNS stimulant, mild diuretic, and respiratory stimulant (in neonates with apnea of prematurity). Often combined with analgesics or with ergot alkaloids, caffeine is used to treat migraine and other headache types. Over the counter, caffeine is available to treat drowsiness or mild water-weight gain.