Added next_state function to boostified simulator.