Could be moved below the while loop, because not used before