Now measuring max mem usage.