feat: Add maxDuration option