Third variable, and validation loop.

This is my final variable and validation loop.