Decoding on thread