Some GPU cleanup and fixes.