Timer function imported from last google 3.10y code!