Support more flexible yaml config.