Bug fix: psdcore was not applying weights properly.