Clone from http://nuget.codeplex.com/