Experimental code, messing around with spin networks.