Added funcitons for running through the automita engine