I was prescribed this for insomnia and it worked for short term very well and it completely rid me of bad heartburn too, better than acid reducers I was buying to bad it wouldn't work longer than four hours . I tried the cr ambien as well no difference in beneficial result.