Enable and disable handoffs via environment variables