Modified memory usage to use rates