Working on the SPCode, it's not easy to parse it and external scripts don't always do what I need