Upgraded action to accept a map of data.