Data structure implementations.