Improved setting of source and target compatibility.