Copied from private svn repository.