Updating CPU and finalizing the GPU