Figured out a cleaner way of handling device replies