Final Script... working in ArcMap