Update transition code