Modified odg for state diagram