Now accepting transitionFunction