Restore 4.0 integration code.