BF - Added interrupt handling to allow for devices running on separate threads.