Changes to the softfunction library