Multiple queries at the same time

Those empty for loops will never exit, so you never read your remote again. If you remove them, you'll likely need a mode variable to keep track of which sequence to run from loop, but at least you'll get something from the remote.