Imported from svn.