Eliminate deprecation warning