Timing function works locally - but does not produce good estimates