Conceptual work to POC pre caching of output commands. Some not so pretty code to prove a concept.