Updated to work with Visual Studio 2013.