Add final adjustments to run simulation. Code is broken though, running it yields a segfault.