Move simulatino runner to lib