Muscle spasms can often be caused by mineral imbalances. Supplementation with Calcium, Magnesium and Potassium can lessen them. Also make sure you have enough "B" vitamins because nerve function and the firing of the muscle fibers can be caused by a lack of nutrients in this respect as well.