Adding transition actions to opt