Update basic codes.