bhand: Updating frame that the cg is computed in. Commenting out additional debug statements so that cg computation can be run in realtime.