Awesome code for stabilizing the weight