Update psuedo_code