* print timings on ctrl+c exit * remove redundant free memory call. * add global pointer to ctx.
TODO