Added callback in constructor for adding transitions before the default state is transitioned to.