Created tagAccuracy function. Should probably be tested more.