Add function for save rate to HashMap.