Added some output filtering to remove useless output and get arrays instead of piped strings