Change sdef to use correct methods.