Code now Works Flaulessly with Actual Data.