Accepte user defined dict