DeprecationWarning has been resolved #6