Added real timer code.