Added ability to fix weights