Add deprecation warning for 1.7