Added PendingDeprecationWarning for the code sections which ensure
backward compatibility.