Imported Haiku code from old repository.