Updated version, created timerconfigurationclass and implemented it in viewcontroller