Amputation tends to solve these problems, may want to take a look at it.
But like the guy who first replied mentioned, if its not related to medicines you are taking, making exercises like 3 hours before sleep or during the day helps with it,avoiding caffeine and tobacco too..