Add loops and debug stuff that needs to be pruned