Clock implementation + beginnings of tools interface.