Migrate code from CodePlex project