Cleans up dependencies.
Renders stuff async.