Lines 353, 354 sleeping and tempMsgTrigger are no longer used.