To remove deprecation warning