Get the free template at this location : Contact me on Fiverr if you want further assistance :
I’m guessing using a recursive function that detects blocks around the block thats being pushed?