Cleaned up list implementation.