Added untested implementation of weight toggling