Added ChateauAPI and some small compatibility.