adds the max time option