Updated shell code