Added analytic code for function runtime testing