Time counting implemented.