Implement add directory