Finally finished dothey. Still need review, but it's mainly done.