Update and create codes