Latest updates. Mostly added getTimes function.