Implemented wrap-begin classes on all transitions