Added multiple devices support!