Refactored into Arrays package.