Added path requirement
Fix deprecation warning