Worked out bug with stacking processes and difficulties with single commands. Made it a bit more ugly, but hey