Named transitions.

Fixes #24 #2076.