Imported cost analysis code.