Some changes in GotoMainMenu and AddTimerTasks.