Fix NPE, tune call time logger and make runtime tunable.