Update some codes.