Added state register pattern detecting machine