I've been trying to replicate CNCT's stacking behavior for an element of mine, but when I look into the master code for CNCT, I can't seem to find the way it does it.