Why isn't maxDuration of type Option[Expression[Duration]] then?