Implement djname function