I figured toMap would return a ScMap, but we need a Map here?