Haldwani Times
Haldwani Times
Technology

offswitch added to PyPI

offswitch added to PyPI
Photo / Illustration: Haldwani Times Editorial Desk

Skip to main content Switch to mobile version offswitch 0.1.0 A tiny, dependency-free, human-controlled, latching AI off switch.

pip install offswitch Copy PIP instructions

A tiny, dependency-free AI off switch for Python. The AI (or any automated agent) operates; a human can kill it; and only a human can turn it back on.

Inspired by a latching emergency stop on a machine: someone presses the big red button, everything stops, and it stays stopped until a person walks over and deliberately resets it. The machine can read the button. It can never press reset.

Zero dependencies, pure standard library, Python 3.9+

Latching: once killed, a process stays killed

Fail closed: if the switch can't be read or the remote can't be reached, that is a kill

Any one source kills: kill file, env var, signal, remote URL, or a stale human heartbeat

Append-only, hash-chained audit log of every kill and reset

Reset only works from a human at a terminal who types a confirmation phrase

Read the threat model before relying on this. A software switch is a seatbelt, not a vault.

pip install offswitch # once published; until then: pip install git+https://github.com/fitzyracing1/offswitch # (planned location) # or from a checkout: pip install . 2-minute drop-in guide

1. Add the switch to your agent.

from offswitch import OffSwitch, KilledError switch = OffSwitch() # watches .offswitch/KILLED and $OFFSWITCH_KILL @switch.guard # checked before every call def run_tool(name, args): ... def agent_loop(): while True: switch.check() # raises KilledError if the switch is ON step() try: agent_loop() except KilledError as stop: # note: a BaseException, `except Exception` won't eat it cleanup() raise SystemExit(f"stopped: {stop.reason}") Also works as a context manager and on async def functions:

with switch: # checks on entry and again on exit do_something_risky() Put switch.check() (or @switch.guard) in front of anything with side effects: tool calls, shell commands, network writes, spending money, commits, deploys.

2. Kill it (from any shell, script, cron job or monitoring alert; killing needs no confirmation):

offswitch kill -m "agent is looping on prod" Every guarded call now raises KilledError, in every process that watches that file.

offswitch status # exit code 0 = running, 3 = killed offswitch log # audit trail + chain verification 4. Resume (a human, at a terminal):

offswitch reset # type the confirmation phrase when asked Then restart the agent. A process that was killed stays killed even if the file disappears, by design. Restart is the "walk over and reset the machine" step.

Add .offswitch/ to .gitignore (the kill file is local state).

Any one of these kills. Once any fires, the switch latches (a kill file is written so other processes see it too) and the event is audited.

import signal switch = OffSwitch( ".offswitch/KILLED", env_var="OFFSWITCH_KILL", signals=(signal.SIGUSR1,), # main thread only remote_url="https://example.com/ai-status", remote_timeout=2.0, # per request remote_interval=5.0, # cache results this long remote_fail_closed=True, # default: unreachable/garbled = killed remote_grace=0.0, # seconds of failure tolerated before killing remote_headers={"Authorization": f"Bearer {os.environ['STATUS_TOKEN']}"}, latch_on_remote_error=True, # False: blocked while unreachable, auto-recovers heartbeat_file=".offswitch/HEARTBEAT", heartbeat_max_age=900, # human must `offswitch beat` every 15 min audit_log=".offswitch/audit.log", ) Remote URL protocol

GET the URL. 200 plus JSON {"killed": false} (or a plain body ok/alive/run/ go/0/false) means keep going. {"killed": true} or a plain body killed/stop/ off/1/true means stop. Anything else is an error: non-200, timeout, DNS failure, a captive portal's HTML. With remote_fail_closed=True (default) errors kill. Set remote_fail_closed=False only if a network blip must never stop you, and understand that then an attacker who can block the network can also block your kill signal. Only http/https URLs are accepted. Use a URL a human controls (a gist, an S3 object, a tiny worker, a status page). Do not put secrets in code; read tokens from the environment.

switch = OffSwitch(heartbeat_file=".offswitch/HEARTBEAT", heartbeat_max_age=900) A human runs offswitch beat --heartbeat-max-age 900 (or any script that touches the file, run from their session) at least every 15 minutes. If they stop (asleep, laptop closed, incident), the agent stops on its own. A missing file counts as stale.

offswitch kill [-m REASON] [--pid PID ...] turn ON (no confirmation; exit 3) offswitch status exit 0 running, 3 killed offswitch reset [-m NOTE] human only (see below) offswitch beat refresh the dead-man heartbeat offswitch log [--no-verify] show audit log, verify hash chain Common flags: --dir (default .offswitch), --kill-file, --audit-log, --heartbeat-file, --heartbeat-max-age, --env-var, --remote-url, --remote-timeout. python -m offswitch ... also works.

reset is deliberately awkward. It refuses unless stdin and stdout are a terminal (exit 4, nothing changes), and then requires you to type I AM A HUMAN, RESUME THE AI exactly. Wrong phrase: refused and audited. Right phrase: kill file removed, reset audited. The Python API has no reset method on OffSwitch at all. Reset lives in offswitch.admin and runs the same checks.

If $OFFSWITCH_KILL is still set, or the remote still says killed, or the heartbeat is still stale, the next process will be killed again immediately; offswitch status tells you which.

.offswitch/audit.log is JSON lines, written with O_APPEND, one entry per kill, kill-observed, reset, reset-refused, with timestamp, user, host, pid, source and reason. Each entry stores the SHA-256 of the previous one, so edited or removed lines are detected by offswitch log (or AuditLog.verify()). That is tamper evidence. For tamper resistance on Linux, as root: chattr +a .offswitch/audit.log, or ship entries to a log host the agent can't write to.

examples/github-actions/agent-job-gate.yml: blocks agent jobs while a .offswitch/KILLED file exists on the default branch or the repo variable OFFSWITCH_KILL is truthy. Checking the default branch (not the PR checkout) matters: an agent can delete a file in its own branch, but not on main. Errors fail closed. Copy it to .github/workflows/ and put your agent steps after the gate. To kill: gh variable set OFFSWITCH_KILL --body 1 (or commit .offswitch/KILLED to main). To resume: gh variable delete OFFSWITCH_KILL, and revert the file. Give the agent's token no permission to edit repo variables or push to main.

.github/workflows/ci.yml: lint, tests and build for this package.

Threat model (be honest with yourself)

What this protects against: well-meaning-but-buggy agents, runaway loops, a tool-using model that is confused rather than adversarial, a human who needs to say "stop now" and have every guarded call obey, and accidents like an agent "helpfully" deleting the kill file (the in-memory latch holds).

What it does not protect against: a determined process with the same permissions as the switch. If the agent can run arbitrary code as the same OS user, it can delete or rewrite the audit log, unset the env var, remove the signal handler, monkeypatch OffSwitch.check, never call check() at all, spawn a subprocess that doesn't import this library, os.fork() past it, or allocate a pseudo-terminal and type the reset phrase. A Python library cannot stop code that is willing to ignore it. The checks only work if the guarded code chooses to run them.

What a real guarantee needs is separation the software can't provide:

Run the agent as an OS user (or container) that cannot write the kill file or heartbeat directory and cannot read the reset tooling. Make the state dir root-owned and read-only to the agent. Then it can read the switch and cannot reset it, which is the entire design.

Put the real control outside the machine: revoke the API key or cloud role, drop the network at a firewall, stop the container, or cut power. These work on a process that has ignored your library entirely.

Do the enforcement at a chokepoint the agent has no access to (a proxy, a broker, a deploy pipeline) and let offswitch be the cooperative fast path in front of it.

Use the dead-man heartbeat so that silence stops the agent, rather than depending on someone remembering to press kill.

The hardware version of this idea: the original design is a harbor whose passive radar reflectors keep marking the channel even if the AI that runs the active gear (radar beacon, AIS, lights) goes wrong. A physical, human-flipped latching cutoff on the active gear removes its power and the AI cannot override it, because it is wired on the far side of the AI's reach, and the passive safety layer needs no software at all. This library is the software analog of that cutoff; the physical one is stronger. If the stakes are physical, build the physical one: a latching e-stop that cuts power to actuators, wired so a controller fault leaves them off, with a manual reset.

Latching is per process. Restart is part of reset.

Fail-closed means a flaky remote will stop you (that is the point; tune remote_grace).

Signal handlers only install from the main thread (a warning is raised otherwise) and replace the default SIGUSR1 action; any previous Python handler is chained.

check() is cheap (a stat and an env read; remote polls are cached) but not free; don't call it in a tight inner loop of pure computation.

Not Windows-tested; signal support is POSIX-only.

pip install -e '.[dev]' ruff check . pytest python -m build License

MIT, © 2026 Joshua Almeida (@fitzyracing1).

Released: Nov 28, 2026

Author: Joshua Almeida

MIT View SPDX License List

ai agents safety kill-switch emergency-stop

Development Status 3 - Alpha

Intended Audience Developers

Operating System OS Independent

Programming Language Python :: 3

Release files for offswitch 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Built distribution (wheel)

Total release size: 46.3 kB

Release files / offswitch-0.1.0.tar.gz

Release files / offswitch-0.1.0-py3-none-any.whl

Security for offswitch 0.1.0

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Nov 28, 2026 2 release files No provenance

"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.

© 2026 Python Software Foundation

Deployed from fc0d8e6

Source Attribution: This report incorporates information referenced or syndicated from Pypi.org. Read original coverage at Pypi.org.

More from Technology →
Haldwani Times
Haldwani Times Independent News & Editorial
Login
MARKETS & FINANCE
BRENT CRUDE: $78.40 -0.52% SENSEX: 81,450.20 +0.42% NIFTY 50: 24,820.15 +0.38% GOLD (24K): ₹74,500/10g -0.18% USD/INR: ₹95.54 +0.10%

ADMINISTRATIVE LEADERSHIP

Mr. Narendra Modi
Mr. Narendra Modi
Mr. Lt. Gen. Gurmit Singh
Mr. Lt. Gen. Gurmit Singh
Mr. Pushkar S. Dhami
Mr. Pushkar S. Dhami
Mr. Lalit M. Rayal
Mr. Lalit M. Rayal
Mr. Gajraj S. Bisht
Mr. Gajraj S. Bisht

Top Headlines & Breaking Stories

View All News →

Haldwani Times – Everything in Haldwani: News, Shops, Businesses & Services

Haldwani Times is the premier digital news and commercial discovery platform built specifically for the citizens, business owners, students, professionals, and visitors of Haldwani, Nainital district, and the wider Kumaon region of Devbhoomi Uttarakhand. As the economic gateway to the Kumaon Himalayas, Haldwani is a bustling metropolis connecting the plains of northern India with the scenic mountain districts of Nainital, Almora, Pithoragarh, Bageshwar, Champawat, and Udham Singh Nagar. Haldwani Times serves as the definitive digital heartbeat of the city, bringing breaking hyperlocal news, verified commercial directories, educational updates, healthcare guides, Mandi Bhav rates, and civic announcements onto a single unified, trusted platform.

The Definitive Source for Breaking Haldwani News & Civic Updates

Haldwani stands as one of the fastest-growing urban conglomerates and commercial engines in northern India. Positioned in the fertile Terai-Bhabhar belt at the foothills of the Shivalik range, the twin cities of Haldwani and Kathgodam form the administrative and logistical nerve center for the entire Kumaon division. With rapid urbanization, expanding commercial infrastructure, flourishing educational centers, and increasing inter-state transit, the demand for fast, fact-checked, and unbiased local journalism has never been greater. Haldwani Times delivers 24/7 comprehensive news coverage built on rigorous journalistic standards: - **Hyperlocal Civic News:** Real-time coverage of municipal corporation affairs, city drainage projects, traffic management blueprints, and road widening drives across Tikonia, Mukhani, Kusumkhera, Bareilly Road, and Rampur Road. - **Administrative Directives:** Official notifications from the District Magistrate (DM) Nainital, Senior Superintendent of Police (SSP), and state secretariat decisions affecting citizen welfare. - **Kumaon Weather & Disaster Alerts:** Timely mountain rainfall warnings, landslide advisories along NH-109 (Haldwani-Nainital Highway), and emergency bulletins during the monsoon and winter seasons. - **Education & Campus News:** Timely reports on Kumaon University examination schedules, Uttarakhand Board (UBSE) results, medical college admissions, and competitive coaching updates. - **Commercial & Market Trends:** Daily wholesale Mandi Bhav rates from Haldwani Subzi Mandi, real estate trends, retail market festivals, and local business openings. - **Cultural & Pahadi Heritage:** In-depth feature stories celebrating Kumaoni folk traditions, Aipan art, Nanda Devi festivals, and local community milestones.

Everything in Haldwani on One Unified Digital Ecosystem

Beyond traditional news reporting, Haldwani Times is engineered as an exhaustive local discovery engine. Historically, finding verified local business telephone numbers, emergency hospital contacts, specialized doctors, reliable plumbers, or trusted real estate consultants in Haldwani required asking neighbors or browsing outdated social media posts. Haldwani Times eliminates this friction by organizing every commercial, professional, and civic resource into searchable, verified categories. Whether you are a newly arrived resident in Kusumkhera looking for high-speed broadband providers, a parent searching for reputable CBSE schools near Kaladhungi Road, or a tourist seeking taxi rentals to Nainital, our portal delivers accurate, verified, and actionable information in seconds.

Local Shops, Retail Hubs & Traditional Bazaars in Haldwani

The retail commerce of Haldwani spans centuries-old traditional bazaars and modern commercial complexes: - **Bada Bazaar & Mangal Parao:** The historic retail heart of Haldwani, renowned for traditional Kumaoni wedding jewelry (Pauji, Guloband, Nath), brass utensils, ethnic handlooms, and wholesale clothing. - **Nainital Road & Tikonia Commercial Corridor:** Modern multi-brand retail showrooms, electronics stores, authorized smartphone service centers, branded footwear outlets, and international apparel stores. - **Bareilly Road & Rampur Road Trade Hubs:** Major agricultural machinery dealers, hardware and building material wholesalers, furniture manufacturing units, plywood distributors, and automobile showrooms. - **Subzi Mandi & Wholesale Grain Market:** One of the largest agricultural distribution centers in North India, supplying fresh vegetables, hill fruits (apples, peaches, plums), and organic Pahadi pulses (Gahat, Bhatt, Rajma) across northern states.

Healthcare Hub of Kumaon: Hospitals & Emergency Services

Haldwani serves as the premier medical lifeline for all six hill districts of Kumaon. Patients travel from Almora, Pithoragarh, Bageshwar, and Champawat to access specialized clinical treatments in Haldwani: - **Government Healthcare Institutions:** Dr. Susheela Tiwari Government Medical College & Hospital (STGH) and Base Hospital Haldwani provide tertiary trauma care, specialized super-specialties, pediatric ICUs, and 24/7 emergency response. - **Private Multi-Specialty Hospitals:** Advanced private medical centers specializing in cardiology, joint replacements, neurology, critical care, nephrology, and advanced laparoscopic surgeries. - **Diagnostic Centers & 24/7 Pharmacies:** Fully automated pathology laboratories, high-resolution MRI/CT scan centers, and round-the-clock emergency pharmacies clustered around Medical College Road, Kaladhungi Road, and Rampur Road.

Education, Colleges, Coaching Academies & Youth Development

Haldwani is the educational capital of the Kumaon region, home to thousands of ambitious students preparing for medical, engineering, defense, and civil services careers: - **Premier Degree Colleges:** Motiram Baburam Government Post Graduate College (MBPG College) and Women's Degree College providing extensive undergraduate and postgraduate humanities, commerce, and science programs. - **Competitive Coaching Ecosystem:** Highly reputed coaching academies for NEET UG, JEE Main & Advanced, UPSC Civil Services, UKPSC/UKSSSC, NDA, CDS, and Banking examinations along Kaladhungi Road and Tikonia. - **Affiliated Schooling Infrastructure:** Esteemed CBSE, ICSE, and Uttarakhand Board schools imparting value-based holistic education with modern sports and laboratory facilities.

Real Estate, Housing Colonies & Urban Expansion Trends

Driven by rapid infrastructure expansion and high quality of life, Haldwani's real estate market is expanding outward into organized residential colonies: - **Prime Residential Localities:** Highly sought-after residential sectors in Mukhani, Kusumkhera, Kaladhungi Road, Judge Farm, Daharia, and Bhotia Parao offering planned housing, green parks, and modern civic amenities. - **Commercial Property Investments:** Thriving commercial retail complexes, office spaces, and warehouse hubs developing rapidly along the proposed Haldwani Ring Road and transport corridors. - **Property Advisory & RERA Compliance:** In-depth real estate updates, circle rate revisions by the Nainital district administration, and buyer advisory guidelines for safe property acquisitions.

Strategic Transit Gateway, Tourism Routes & Kumaon Himalayan Connectivity

Haldwani-Kathgodam is the vital transit bridge connecting the plains of Delhi NCR and Uttar Pradesh with the hill stations of Uttarakhand: - **Kathgodam Railway Terminal:** Connecting Kumaon directly to New Delhi (Shatabdi Express, Ranikhet Express), Lucknow, Kolkata, Jammu, and Dehradun. - **ISBT Haldwani:** Operating round-the-clock interstate and mountain bus routes managed by Uttarakhand Transport Corporation (UTC) and private deluxe coaches. - **Pantnagar Airport (PGH):** Located just 26 km from Haldwani, offering scheduled domestic flights to New Delhi, Dehradun, Pithoragarh, and regional hubs. - **Himalayan Tourism Hub:** The primary staging point for journeys to Nainital (34 km), Bhimtal (30 km), Mukteshwar (72 km), Kainchi Dham (42 km), Almora (90 km), Ranikhet (80 km), and Jim Corbett National Park (55 km).

Gaula River Mining, Ecological Balance & The Bhabhar Economy

The Gaula River represents the undisputed economic and hydrological lifeline of Haldwani and the broader Nainital district. Originating from the Sattal-Bhimtal catchment in the lesser Himalayas, the river flows south past Kathgodam and Haldwani before merging into the Ramganga. For generations, the Gaula riverbed has provided the foundation for both regional agriculture and the construction economy across northern India: - **Regulated Minor Mineral Extraction:** During the open mining season (typically October to May), thousands of registered tractor-trolleys and heavy dumpers harvest riverbed gravel, sand, and boulders under strict surveillance by the Uttarakhand Forest Development Corporation and the Nainital district administration. - **Livelihood Support for Over 50,000 Families:** The Gaula mining economy directly and indirectly sustains vehicle owners, drivers, mechanics, diesel pump stations, roadside eateries, and local laborers, circulating over ₹500 crore into Haldwani's local markets annually. - **Environmental Safeguards & Flood Mitigation:** In strict adherence to High Court and National Green Tribunal (NGT) directives, scientific replenishment studies, satellite GPS tracking on transport vehicles, and seasonal mining bans during the monsoon protect the river's ecological balance and prevent bank erosion along low-lying residential sectors.

Culinary Landscape: From Traditional Kumaoni Rasoi to Modern Cafes

Haldwani's gastronomic scene reflects a delightful blend of rustic mountain traditions and cosmopolitan dining: - **Authentic Kumaoni Specialties:** Local restaurants and heritage dhabas serve traditional mountain delicacies cooked in iron vessels, including Bhatt ki Churkani (black soybean curry), Gahat ke Dubke (horsegram puree), Aloo ke Gutke tempered with wild Himalayan chives (Jamboo) and Jakhiya, and refreshing cucumber Raita flavored with freshly crushed mustard seeds. - **Traditional Confectioneries:** Historic sweet shops along Bada Bazaar and Nainital Road craft Almora's world-famous Bal Mithai (roasted caramelized khoya fudge coated in sugar balls) and Singaudi (sweetened khoya wrapped in wild Malu leaves). - **Vibrant Street Food & Cafe Culture:** As dusk falls, Tikonia and Nainital Road come alive with bustling street food stalls offering steaming Tibetan momos, spiced thukpa, Kathi rolls, and hot Masala Chai, alongside modern rooftop cafes serving specialty Italian coffees and continental snacks.

Cultural Festivals, Folk Heritage & The Aipan Art of Kumaon

Beyond commercial enterprise, Haldwani is the proud cultural showcase of Devbhoomi Uttarakhand: - **Aipan Folk Art Tradition:** The sacred geometrical floor and wall art handcrafted with red ochre (Geru) and white rice paste (Biswar) adorning thresholds, altars, and chowkis during auspicious ceremonies, now preserved through local women's self-help cooperatives. - **Classical Baithki & Khadi Holi:** Unique to Kumaon, musical celebrations starting as early as the month of Paush, featuring classical Hindustani ragas sung in community courtyards followed by energetic Chholiya dance performances during spring. - **Nanda Devi & Chholiya Heritage:** Grand annual fairs celebrating the patron deity Nanda Devi, accompanied by martial sword-and-shield Chholiya dancers whose rhythmic brass trumpets (Ransingha) and hurka drums resonate through the valley.

Public Amenities, Parks & Community Spaces in Haldwani

Urban lifestyle and recreational infrastructure in the city: - **Green Parks & Walking Tracks:** Walkway projects around Daharia, Judge Farm, and Awas Vikas providing lush recreational zones for families and seniors. - **Community Centers & Sports Grounds:** Multi-purpose auditoriums and grounds hosting cultural melas, badminton tournaments, and community celebrations. - **Gaula Barrage & Forest Trails:** Scenic river viewpoints and natural birdwatching areas attracting eco-tourists and local nature enthusiasts on weekends.

Frequently Asked Questions (FAQs)

How can I access live breaking news and weather alerts for Haldwani?

Haldwani Times operates a dedicated 24/7 hyperlocal newsroom providing real-time breaking bulletins, traffic alerts, and meteorological warnings. You can access live news directly from our homepage, subscribe to instant browser push notifications, or view categorical updates on Uttarakhand, Education, and Mandi Bhav. During monsoon and winter weather events, our correspondents provide live updates on NH-109 road blockages and emergency administrative orders issued by the Nainital District Magistrate.

Is Haldwani Times completely free to read for all visitors?

Yes, Haldwani Times offers completely unrestricted, open-access reading to all users without mandatory paywalls. Readers across Haldwani, Uttarakhand, and the global diaspora can freely browse all breaking news reports, investigative articles, business directory listings, and historical archives. Our public-interest mission ensures that essential civic information, emergency hospital directories, and educational circulars remain universally accessible to everyone at zero cost.

How can local business owners list their shop or service in the Haldwani directory?

Local merchants, medical practitioners, schools, and service professionals can register their business by navigating to our 'Business Directory' page and selecting 'Add Listing'. The registration process allows you to input your business name, address, contact numbers, operational hours, services offered, and high-resolution showroom photographs. Once submitted, our local verification team verifies the physical address within 24 hours to ensure high consumer trust and top ranking on Google.

Can I read Haldwani Times articles in Hindi as well as English?

Yes, Haldwani Times features a seamless, native bilingual reading experience tailored for our regional readership. With our one-click language toggle located prominently in the navigation bar, you can instantly switch between English and pure Hindi. Both versions feature carefully crafted editorial phrasing, accurate regional terminology, and culturally resonant storytelling to ensure maximum readability for students, families, and senior citizens alike.

How do I submit news tips, event notices, or press releases to the editorial team?

Our newsroom warmly welcomes verified news tips, community event notices, civic grievances, and official press releases from citizens and local organizations. You can submit your documents, photos, or video evidence directly to our central editorial desk at editorial@haldwanitimes.com or via our Help & Support page. Our senior editors review every submission for factual authenticity, multi-source verification, and public relevance prior to publication.

Where can visitors find authentic Kumaoni Bal Mithai and Singaudi in Haldwani?

Renowned traditional sweet houses clustered along Bada Bazaar, Mangal Parao, Kathgodam Station Road, and Nainital Road specialize in daily batches of authentic Bal Mithai and fragrant Singaudi prepared with pure mountain dairy khoya and natural ingredients.

What transportation options are available for traveling from Haldwani to Nainital and Bhimtal?

Continuous state transport buses (UTC), KMOU coaches, and registered taxi union sharing cabs operate 24/7 from the Haldwani Roadways Bus Station (near Tikonia) and Kathgodam Railway Station. Fares are regulated by the transport department, with mountain travel times ranging between 1 to 1.5 hours.