Integrate dirray with distnet