Added back latency function plots