Add script to log weight