People who work night shifts may take modafinil
to stay alert. Treatment improves alertness, reduced tiredness, and improved memory. But it is known to cause side effects – headache
,Nausea , Back pain, Nervousness and anxiety, Upset stomach and diarrhea, Inflammation of the tissues in the nose (rhinitis) ,Problems sleeping (insomnia) and Dizziness. Symptoms of Restless leg syndrome worsen with increased anxiety .Please discuss the symptoms with your doctor . Hope this helps you .