How protein stability and new functions trade off.