Functions Industry change to var result and final alert