Made a little more idempotent.