Addressed a deprecation warning