Added mean time functionality