Changed to faster time function.