Added states and initialized code.