Adding 'list_sizes' function and related integration test.