Changed name of environment variable
Added parallel testing of multiple devices and properly handling SIGINT