Commands can either come before or after the device. Added basic device filtering based on text input.