master: Fleshed out label and thread functions.