Implements more stuff in DO and some test cases.