Added time measuring