Change time type from Date to int
Fix missing reactions from react function
Add tick function