Changed variable definitions to fix compiler errors in Visual Studio.