Replace the obsolete methods