New fuctions run_all retcode and their pillar fuctionality too. Big rewrite of old code