Turn variable back into int to avoid comparison warnings.