Handle size() correctly.