Removed debugging Console.WriteLine() stuff and fixed bug that extracted too much data