Switch over to using device to determine which platform we are on