Worker Code for SJCL.