More robust for bad configuration.