Add timer code.
Add tick and commands to control.