Bonus: Use default duration of 10 seconds if invalid input < time.Second is specified
Create new code paths for multiple subsystems in the code. This will make maintaing this easier later. Also introduce bugLogIf() for errors that should not happen in the first place.