Update lang logic