Retried toggle code