Update ThetaCode