Added Consumer-based implementation for lists