Moved selection of CES control parameters to a separate function.