Add missing function and behaviour for timer0