Add transition functions.
add transition_function, accepted and rejected.