Added Directory API.