Pass dict instead of list