Adds proper ending and beginning of threadReception