Make timerange work using kwarg