Should check this at the end to at least identify the issue rather than giving bogus results