Added instruction state and text class