Hacks to add transitions.