Converted all string input into integer variables.