Use multimaps instead of map