Started work on runSerialCommand function