Split label functions, added some basic op extraction. Lots of debugging still in there.