Source code, converted to VS2010 format