Converted to vs2010