Initial pattern decoding