Update analysis codes