Made rate configurable.