Start of thread parsing