For adult patients undergoing continuous EEG for clinical purposes , noise-cancelling headphones and eye masks were worn , and an oral dose of melatonin was administered for @ days , or until EEG was stopped .