Made a couple tweaks to Bead to make it more thread-safe.