Changed logic for when to use stress dot n vs a function representing stress dot n.