Update basic codes