Added a configurable weight cycle.

TODO actually parse it from weight.yaml.