Updated the Weight Create Function.