DS: Implement more ds functionality.