Basic functionality is given, but looping is missing. Would like to use array as system() input, need an intelligent splitting algo