Update the code functions.