New procedure to help epilepsy patients