Add clock code.