Reworked scripts slightly, more separated concerns using pipes between each step