Update security update function code