Update the spec algorithm per Jake's update.