Added Leave Function