Added key type to parameters