Added array for holding latency-values and made function to register them