Rename flush to commit.
Added missing module.
Refactored adjacencies.