Added files from patricia repo.