This may cause problems on some newer accelerators. We might have to write a more accurate detect code.