Added a removecurrent boolean parameter to the Core thread instruction.