Start of Ubuntu compatibility.