Added marking stages of decoding