Hacked together dep graph and tests.