Potentially fixed salient algorithm bug, needs further testing