Rewrite to accommodate application’s config.