Add a test for the size of the device. Exit if the size is too small