Convert first set of commands to a table