Optimizations, update to VS2012.