Add path accept functionality