An adaptation from SimplePomodoro