How mid-sized companies stay stable in unpredictable markets