Added some pre-functionality to proton threads