Add constraints to Instruction class.