Added i/o to check if teamName is correct when looking for it.