We check for valid configurations.