Fix module dependencies.
Add TODO docs.