Updating control code